import i18n from '../../../i18n/i18n'
export const tableOption = {
  border: true,
  stripe: true,
  menuAlign: 'center',
  menuWidth: 350,
  align: 'center',
  refreshBtn: true,
  searchSize: 'mini',
  addBtn: false,
  delBtn: false,
  editBtn: false,
  viewBtn: false,
  selection: false,
  menu: false,
  searchBtn: false,
  props: {
    label: 'label',
    value: 'value'
  },
  column: [{
    label: i18n.t('distribUserWallet.distributorNickname'),
    prop: 'nickName',
    slot: true
  }, {
    label: i18n.t('distribUserWallet.mobileTelNumber'),
    prop: 'userMobile',
    width: 160,
    searchLabelWidth: i18n.t('language') === 'language' ? 240 : 120,
    slot: true,
    search: true
  }, {
    label: i18n.t('distribIncome.orderNumber'),
    prop: 'orderNumber',
    searchLabelWidth: i18n.t('language') === 'language' ? 100 : 80,
    search: true
  }, {
    label: i18n.t('distribIncome.commission'),
    prop: 'incomeAmount',
    sortable: true

  }, {
    label: i18n.t('sys.creationTime'),
    prop: 'createTime',
    sortable: true

  }, {
    label: i18n.t('home.updateTime'),
    prop: 'updateTime',
    sortable: true

  }, {
    width: 150,
    label: i18n.t('distribIncome.rewardRype'),
    prop: 'incomeType',
    dicData: [{
      label: i18n.t('distribIncome.levelReward1'),
      value: 1
    }, {
      label: i18n.t('distribIncome.secondaryReward'),
      value: 2
    }, {
      label: i18n.t('distribIncome.invitationReward'),
      value: 3
    }
    ]
  }, {
    width: 150,
    label: i18n.t('order.orderStatus'),
    prop: 'status',
    slot: true
  }, {
    width: 160,
    label: i18n.t('distribIncome.commissionStatus'),
    prop: 'state',
    searchLabelWidth: i18n.t('language') === 'language' ? 160 : 80,
    search: true,
    type: 'select',
    dicData: [
      {
        label: i18n.t('distributionProdLog.pendingSettlement'),
        value: 1
      }, {
        label: i18n.t('distribIncome.withdrawable'),
        value: 2
      }, {
        label: i18n.t('seckill.loseEffectiveness'),
        value: -1
      }
    ]
  }
  ]
}
